<template>
  <a-config-provider :locale="zhCN">
    <div id="app">
      <router-view v-if="isShow"/>
    </div>
  </a-config-provider>
</template>

<script>
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import moment from 'moment'
import 'moment/locale/zh-cn'

import { AppDeviceEnquire } from '@/utils/mixin'

moment.locale('zh-cn')

export default {
  mixins: [AppDeviceEnquire],
  provide () {
    return {
      reload: this.reload
    }
  },
  data () {
    return {
      zhCN,
      isShow: true
    }
  },
  methods: {
    reload () {
      this.isShow = false
      this.$nextTick(() => {
        this.isShow = true
      })
    }
  },
  mounted () {
  }
}
</script>
<style>
#app {
  height: 100%;
}
</style>
